﻿using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Volo.Abp.DependencyInjection;

namespace Xms.Abp.Features;

[Dependency(TryRegister = true)]
public class NullFeaturesStore : IFeaturesStore, ISingletonDependency
{
    public ILogger<NullFeaturesStore> Logger { get; set; }

    public NullFeaturesStore()
    {
        Logger = NullLogger<NullFeaturesStore>.Instance;
    }

    public Task<string> GetOrNullAsync(string name, string providerName, string providerKey)
    {
        return Task.FromResult((string)null);
    }
}